<?php

declare(strict_types=1);

namespace App\Controller\Api;

use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use App\Controller\AbstractController;
use App\Service\UserService\CustomToYunCangUserService;

/**
 * @Controller(prefix="/YunCangCustomUserInfo")
 * @author chenshubo
 */
class YunCangCustomUserInfoController extends AbstractController
{
    /**
     * 关务到云仓-供应商-渠道：用户添加
     * @RequestMapping(path="addUser", methods="post")
     * @return mixed
     */
    public function addUser(RequestInterface $request,CustomToYunCangUserService $CustomToYunCangUserService)
    {
        return $CustomToYunCangUserService->addUser($request->getParsedBody());
    }
}
